/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mscs.server.logic;

import java.io.File;
import java.io.FileReader;
import java.util.Properties;

/**
 *
 * @author Usbuild
 */
public class SettingUtil {
    private String fileName = "settings.properties";
    private File file = new File(fileName);
    private Properties prop = new Properties();
    public SettingUtil() {
        try{
            prop.load(new FileReader(file));
        } catch(Exception ex) {
            ex.printStackTrace();
        }
    }
    public String get(String key) {
        return prop.getProperty(key);
    }
    public void set(String key, String value) {
        prop.setProperty(key, value);
    }
}
